/* ==============================
    نوار ناوبری
============================== */
.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #343a40;
    opacity: 0.95;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.nav-mahva-text {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}
.nav-links li {
    padding-right: 0.7rem;
}
.nav-links a {
    color: #f8f9fa;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: 0.3s;
    font-weight: 400;
    font-size: larger;
}
.nav-links a:hover {
    color: rgb(0, 255, 218);
}
.menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0.2rem 0.8rem;
    border-radius: 8px;
}
.menu-btn:hover {
    background: rgba(255,255,255,0.1);
}
.logo-text {
    color: #f8f9fa;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5rem;
}

/* ==============================
    دکمه سبد خرید
============================== */
.cart-icon-btn {
    position: relative;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    padding: 5px;
    display: flex;
    align-items: center;
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: gold;
    color: #343a40;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    display: none;
}

/* ==============================
    سرچ باکس و دکمه‌های کاربر
============================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.search-wrapper {
    position: relative;
}
.search-input {
    padding: 8px 15px 8px 40px;
    border-radius: 50px;
    border: none;
    outline: none;
    font-family: Vazir, sans-serif;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.15);
    color: white;
}
.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}
.search-input:focus {
    width: 260px;
    background: white;
    color: #333;
}
.search-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
}
.search-btn:hover {
    color: gold;
}
.auth-buttons {
    display: flex;
    gap: 10px;
}
.login-btn, .register-btn {
    padding: 8px 18px;
    border-radius: 50px;
    font-family: Vazir, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.login-btn {
    background: transparent;
    border: 1px solid gold;
    color: gold;
}
.login-btn:hover {
    background: gold;
    color: #343a40;
}
.register-btn {
    background: gold;
    border: none;
    color: #343a40;
}
.register-btn:hover {
    background: #ffd700;
    transform: translateY(-2px);
}
.user-avatar {
    display: none;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid gold;
}
.user-name {
    color: white;
    font-size: 0.85rem;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1001;
}
.dropdown-menu.show {
    display: block;
}
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background: #f0f0f0;
}

/* ==============================
    سایدبار سبد خرید
============================== */
.cart-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 420px;
    height: 100vh;
    background: white;
    z-index: 2000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.cart-sidebar.open {
    transform: translateX(0);
}
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}
.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}
.cart-item-info {
    flex: 1;
}
.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.cart-item-size {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}
.cart-item-price {
    color: #f9a825;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-weight: bold;
}
.qty-num {
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}
.remove-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    margin-right: 10px;
}
.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.cart-row.total {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    border-top: 2px solid #e2e8f0;
    padding-top: 15px;
    margin-top: 10px;
}
.checkout-btn-sidebar {
    width: 100%;
    background: #f9a825;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
    font-family: Vazir, sans-serif;
}
.continue-btn {
    width: 100%;
    background: transparent;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 40px;
    cursor: pointer;
    font-family: Vazir, sans-serif;
}
.empty-cart {
    text-align: center;
    padding: 50px;
    color: #999;
}

/* ==============================
    نوتیفیکیشن
============================== */
.cart-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    z-index: 3000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.cart-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
    مدال ورود و ثبت نام
============================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.modal.show {
    display: flex;
}
.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: modalSlide 0.3s ease;
}
@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-close {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}
.modal h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #343a40;
}

/* ==============================
    فرم‌های ورود و ثبت نام
============================== */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #2d3748;
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: Vazir, sans-serif;
    transition: 0.3s;
    background: #f8f9fa;
}
.form-group input:focus {
    outline: none;
    border-color: #f9a825;
    background: white;
    box-shadow: 0 0 0 3px rgba(249,168,37,0.1);
}
.form-group small {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 5px;
}
.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-group.checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}
.form-group.checkbox label {
    margin: 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 400;
}
.required {
    color: #dc3545;
    font-weight: bold;
}
#passwordStrength {
    margin-top: 5px;
    font-size: 0.85rem;
}
.login-btn-submit, .register-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f9a825, #f57c00);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}
.login-btn-submit:hover, .register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249,168,37,0.3);
}
.modal-footer {
    text-align: center;
    margin-top: 15px;
}
.modal-footer a {
    color: gold;
    cursor: pointer;
}

/* ==============================
    فوتر شیک
============================== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    margin-top: 60px;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 50px 30px;
}
.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: gold;
    border-radius: 3px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.footer-logo h3 {
    margin: 0;
    padding: 0;
}
.footer-logo h3::after {
    display: none;
}
.footer-about {
    line-height: 1.7;
    color: #b0b0b0;
    font-size: 0.9rem;
    text-align: justify;
}
.footer-readmore {
    background: transparent;
    border: 2px solid gold;
    color: gold;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: Vazir, sans-serif;
    font-size: 0.85rem;
    margin-top: 15px;
    transition: all 0.3s ease;
}
.footer-readmore:hover {
    background: gold;
    color: #1a1a2e;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-links a:hover {
    color: gold;
    transform: translateX(-5px);
}
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.social-link {
    display: inline-block;
    padding: 10px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}
.social-link.telegram:hover { background: #0088cc; }
.social-link.eitaa:hover { background: #7b2cbf; }
.social-link.phone:hover { background: #25d366; }
.footer-note {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: #888;
}
.footer-bottom {
    background: rgba(0,0,0,0.3);
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom a {
    color: gold;
    text-decoration: none;
}
.designer {
    color: gold;
}

/* ==============================
    ریسپانسیو
============================== */
@media (max-width: 768px) {
    .menu-btn { display: block; }
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: calc(100vh - 70px);
        background: #343a40;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 1rem;
        transition: right 0.3s ease;
        box-shadow: 2px 0 12px rgba(0,0,0,0.3);
        z-index: 999;
    }
    .nav-links.show { right: 0; }
    .nav-links li { width: 100%; padding: 0; }
    .nav-links a { padding: 12px 16px; font-size: 1.1rem; width: 100%; border-radius: 8px; }
    .search-input { width: 140px; }
    .search-input:focus { width: 180px; }
    .login-btn, .register-btn { padding: 6px 12px; font-size: 0.75rem; }
    .auth-buttons { gap: 5px; }
    .cart-sidebar { width: 100%; }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }
    .footer-col h3::after { right: 50%; transform: translateX(50%); }
    .footer-logo { justify-content: center; }
    .footer-social { align-items: center; }
    .social-link { width: 200px; }
}
